<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--Object.keys()可以获取对象所有的属性 
        Object.values()可以获取对象所有属性的值-->
    <script>
        var obj = {
            name:"李四",
            age:39
        }
        var keys = Object.keys(obj);
        var values = Object.values(obj);
        console.log(keys)
        console.log(values)
    </script>
</body>
</html>